#!/usr/bin/env ./jshost


var add=function(x){return document.createElement(x)};


[ button.onclick ], [ text ], 
	[ sql ]


page={
	[textarea, "width:800px;height:300px;background:#fea;"], 
	button([text.value],
		function(x,ret){ sql(x, function(a,b){ ret(a+": "+b) } } }
	}
};







page=function(oD){
	add(oD, "textarea", function(oT){
		x.style.cssText=;
		add(oD, "button", function(bT){
			bT.onclick=server(function(){
				var out=[];
				sql(oT.value, function(a,b){out[out.length]=a+": "+b});
				out.draw();
			})
		})
	})
};
				
				
				
				
			alert("ROW CODE="+a+"  NAME="+b);
	}
		
	});
);
			
		};
	});
	
	
	oT.style.cssText=;
	oT.appendChild(document.createElement("
	


sql("select article_code, article_name from artc_articles",
	function(a,b){
		alert("ROW CODE="+a+"  NAME="+b);
	}
);

